3.2.4 \(\int (d+e x+f x^2+g x^3) \sqrt {a+b x^2+c x^4} \, dx\) [104]

Optimal. Leaf size=505 \[ \frac {\left (5 b c d-2 b^2 f+6 a c f\right ) x \sqrt {a+b x^2+c x^4}}{15 c^{3/2} \left (\sqrt {a}+\sqrt {c} x^2\right )}+\frac {(2 c e-b g) \left (b+2 c x^2\right ) \sqrt {a+b x^2+c x^4}}{16 c^2}+\frac {x \left (5 c d+b f+3 c f x^2\right ) \sqrt {a+b x^2+c x^4}}{15 c}+\frac {g \left (a+b x^2+c x^4\right )^{3/2}}{6 c}-\frac {\left (b^2-4 a c\right ) (2 c e-b g) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{32 c^{5/2}}-\frac {\sqrt [4]{a} \left (5 b c d-2 b^2 f+6 a c f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{15 c^{7/4} \sqrt {a+b x^2+c x^4}}+\frac {\sqrt [4]{a} \left (b+2 \sqrt {a} \sqrt {c}\right ) \left (5 c d-2 b f+3 \sqrt {a} \sqrt {c} f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{30 c^{7/4} \sqrt {a+b x^2+c x^4}} \]

[Out]

1/6*g*(c*x^4+b*x^2+a)^(3/2)/c-1/32*(-4*a*c+b^2)*(-b*g+2*c*e)*arctanh(1/2*(2*c*x^2+b)/c^(1/2)/(c*x^4+b*x^2+a)^(
1/2))/c^(5/2)+1/16*(-b*g+2*c*e)*(2*c*x^2+b)*(c*x^4+b*x^2+a)^(1/2)/c^2+1/15*x*(3*c*f*x^2+b*f+5*c*d)*(c*x^4+b*x^
2+a)^(1/2)/c+1/15*(6*a*c*f-2*b^2*f+5*b*c*d)*x*(c*x^4+b*x^2+a)^(1/2)/c^(3/2)/(a^(1/2)+x^2*c^(1/2))-1/15*a^(1/4)
*(6*a*c*f-2*b^2*f+5*b*c*d)*(cos(2*arctan(c^(1/4)*x/a^(1/4)))^2)^(1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4)))*Ellipti
cE(sin(2*arctan(c^(1/4)*x/a^(1/4))),1/2*(2-b/a^(1/2)/c^(1/2))^(1/2))*(a^(1/2)+x^2*c^(1/2))*((c*x^4+b*x^2+a)/(a
^(1/2)+x^2*c^(1/2))^2)^(1/2)/c^(7/4)/(c*x^4+b*x^2+a)^(1/2)+1/30*a^(1/4)*(cos(2*arctan(c^(1/4)*x/a^(1/4)))^2)^(
1/2)/cos(2*arctan(c^(1/4)*x/a^(1/4)))*EllipticF(sin(2*arctan(c^(1/4)*x/a^(1/4))),1/2*(2-b/a^(1/2)/c^(1/2))^(1/
2))*(a^(1/2)+x^2*c^(1/2))*(b+2*a^(1/2)*c^(1/2))*(5*c*d-2*b*f+3*f*a^(1/2)*c^(1/2))*((c*x^4+b*x^2+a)/(a^(1/2)+x^
2*c^(1/2))^2)^(1/2)/c^(7/4)/(c*x^4+b*x^2+a)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.18, antiderivative size = 505, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 10, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.312, Rules used = {1687, 1190, 1211, 1117, 1209, 1261, 654, 626, 635, 212} \begin {gather*} -\frac {\sqrt [4]{a} \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \left (6 a c f-2 b^2 f+5 b c d\right ) E\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{15 c^{7/4} \sqrt {a+b x^2+c x^4}}+\frac {\sqrt [4]{a} \left (2 \sqrt {a} \sqrt {c}+b\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} \left (3 \sqrt {a} \sqrt {c} f-2 b f+5 c d\right ) F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{30 c^{7/4} \sqrt {a+b x^2+c x^4}}+\frac {x \sqrt {a+b x^2+c x^4} \left (6 a c f-2 b^2 f+5 b c d\right )}{15 c^{3/2} \left (\sqrt {a}+\sqrt {c} x^2\right )}-\frac {\left (b^2-4 a c\right ) (2 c e-b g) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{32 c^{5/2}}+\frac {\left (b+2 c x^2\right ) \sqrt {a+b x^2+c x^4} (2 c e-b g)}{16 c^2}+\frac {x \sqrt {a+b x^2+c x^4} \left (b f+5 c d+3 c f x^2\right )}{15 c}+\frac {g \left (a+b x^2+c x^4\right )^{3/2}}{6 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x + f*x^2 + g*x^3)*Sqrt[a + b*x^2 + c*x^4],x]

[Out]

((5*b*c*d - 2*b^2*f + 6*a*c*f)*x*Sqrt[a + b*x^2 + c*x^4])/(15*c^(3/2)*(Sqrt[a] + Sqrt[c]*x^2)) + ((2*c*e - b*g
)*(b + 2*c*x^2)*Sqrt[a + b*x^2 + c*x^4])/(16*c^2) + (x*(5*c*d + b*f + 3*c*f*x^2)*Sqrt[a + b*x^2 + c*x^4])/(15*
c) + (g*(a + b*x^2 + c*x^4)^(3/2))/(6*c) - ((b^2 - 4*a*c)*(2*c*e - b*g)*ArcTanh[(b + 2*c*x^2)/(2*Sqrt[c]*Sqrt[
a + b*x^2 + c*x^4])])/(32*c^(5/2)) - (a^(1/4)*(5*b*c*d - 2*b^2*f + 6*a*c*f)*(Sqrt[a] + Sqrt[c]*x^2)*Sqrt[(a +
b*x^2 + c*x^4)/(Sqrt[a] + Sqrt[c]*x^2)^2]*EllipticE[2*ArcTan[(c^(1/4)*x)/a^(1/4)], (2 - b/(Sqrt[a]*Sqrt[c]))/4
])/(15*c^(7/4)*Sqrt[a + b*x^2 + c*x^4]) + (a^(1/4)*(b + 2*Sqrt[a]*Sqrt[c])*(5*c*d - 2*b*f + 3*Sqrt[a]*Sqrt[c]*
f)*(Sqrt[a] + Sqrt[c]*x^2)*Sqrt[(a + b*x^2 + c*x^4)/(Sqrt[a] + Sqrt[c]*x^2)^2]*EllipticF[2*ArcTan[(c^(1/4)*x)/
a^(1/4)], (2 - b/(Sqrt[a]*Sqrt[c]))/4])/(30*c^(7/4)*Sqrt[a + b*x^2 + c*x^4])

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 626

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(b + 2*c*x)*((a + b*x + c*x^2)^p/(2*c*(2*p + 1
))), x] - Dist[p*((b^2 - 4*a*c)/(2*c*(2*p + 1))), Int[(a + b*x + c*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c}, x]
 && NeQ[b^2 - 4*a*c, 0] && GtQ[p, 0] && IntegerQ[4*p]

Rule 635

Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(4*c - x^2), x], x, (b + 2*c*x)
/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 654

Int[((d_.) + (e_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[e*((a + b*x + c*x^2)^(p +
 1)/(2*c*(p + 1))), x] + Dist[(2*c*d - b*e)/(2*c), Int[(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}
, x] && NeQ[2*c*d - b*e, 0] && NeQ[p, -1]

Rule 1117

Int[1/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c/a, 4]}, Simp[(1 + q^2*x^2)*(Sqrt[(
a + b*x^2 + c*x^4)/(a*(1 + q^2*x^2)^2)]/(2*q*Sqrt[a + b*x^2 + c*x^4]))*EllipticF[2*ArcTan[q*x], 1/2 - b*(q^2/(
4*c))], x]] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]

Rule 1190

Int[((d_) + (e_.)*(x_)^2)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[x*(2*b*e*p + c*d*(4*p +
 3) + c*e*(4*p + 1)*x^2)*((a + b*x^2 + c*x^4)^p/(c*(4*p + 1)*(4*p + 3))), x] + Dist[2*(p/(c*(4*p + 1)*(4*p + 3
))), Int[Simp[2*a*c*d*(4*p + 3) - a*b*e + (2*a*c*e*(4*p + 1) + b*c*d*(4*p + 3) - b^2*e*(2*p + 1))*x^2, x]*(a +
 b*x^2 + c*x^4)^(p - 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e
^2, 0] && GtQ[p, 0] && FractionQ[p] && IntegerQ[2*p]

Rule 1209

Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c/a, 4]}, Simp[(
-d)*x*(Sqrt[a + b*x^2 + c*x^4]/(a*(1 + q^2*x^2))), x] + Simp[d*(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 +
 q^2*x^2)^2)]/(q*Sqrt[a + b*x^2 + c*x^4]))*EllipticE[2*ArcTan[q*x], 1/2 - b*(q^2/(4*c))], x] /; EqQ[e + d*q^2,
 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]

Rule 1211

Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c/a, 2]}, Dist[(
e + d*q)/q, Int[1/Sqrt[a + b*x^2 + c*x^4], x], x] - Dist[e/q, Int[(1 - q*x^2)/Sqrt[a + b*x^2 + c*x^4], x], x]
/; NeQ[e + d*q, 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]

Rule 1261

Int[(x_)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Dist[1/2, Subst[
Int[(d + e*x)^q*(a + b*x + c*x^2)^p, x], x, x^2], x] /; FreeQ[{a, b, c, d, e, p, q}, x]

Rule 1687

Int[(Pq_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Module[{q = Expon[Pq, x], k}, Int[Sum[Coeff[
Pq, x, 2*k]*x^(2*k), {k, 0, q/2}]*(a + b*x^2 + c*x^4)^p, x] + Int[x*Sum[Coeff[Pq, x, 2*k + 1]*x^(2*k), {k, 0,
(q - 1)/2}]*(a + b*x^2 + c*x^4)^p, x]] /; FreeQ[{a, b, c, p}, x] && PolyQ[Pq, x] &&  !PolyQ[Pq, x^2]

Rubi steps

\begin {align*} \int \left (d+e x+f x^2+g x^3\right ) \sqrt {a+b x^2+c x^4} \, dx &=\int \left (d+f x^2\right ) \sqrt {a+b x^2+c x^4} \, dx+\int x \left (e+g x^2\right ) \sqrt {a+b x^2+c x^4} \, dx\\ &=\frac {x \left (5 c d+b f+3 c f x^2\right ) \sqrt {a+b x^2+c x^4}}{15 c}+\frac {1}{2} \text {Subst}\left (\int (e+g x) \sqrt {a+b x+c x^2} \, dx,x,x^2\right )+\frac {\int \frac {a (10 c d-b f)+\left (5 b c d-2 b^2 f+6 a c f\right ) x^2}{\sqrt {a+b x^2+c x^4}} \, dx}{15 c}\\ &=\frac {x \left (5 c d+b f+3 c f x^2\right ) \sqrt {a+b x^2+c x^4}}{15 c}+\frac {g \left (a+b x^2+c x^4\right )^{3/2}}{6 c}+\frac {\left (\sqrt {a} \left (b+2 \sqrt {a} \sqrt {c}\right ) \left (5 c d-2 b f+3 \sqrt {a} \sqrt {c} f\right )\right ) \int \frac {1}{\sqrt {a+b x^2+c x^4}} \, dx}{15 c^{3/2}}-\frac {\left (\sqrt {a} \left (5 b c d-2 b^2 f+6 a c f\right )\right ) \int \frac {1-\frac {\sqrt {c} x^2}{\sqrt {a}}}{\sqrt {a+b x^2+c x^4}} \, dx}{15 c^{3/2}}+\frac {(2 c e-b g) \text {Subst}\left (\int \sqrt {a+b x+c x^2} \, dx,x,x^2\right )}{4 c}\\ &=\frac {\left (5 b c d-2 b^2 f+6 a c f\right ) x \sqrt {a+b x^2+c x^4}}{15 c^{3/2} \left (\sqrt {a}+\sqrt {c} x^2\right )}+\frac {(2 c e-b g) \left (b+2 c x^2\right ) \sqrt {a+b x^2+c x^4}}{16 c^2}+\frac {x \left (5 c d+b f+3 c f x^2\right ) \sqrt {a+b x^2+c x^4}}{15 c}+\frac {g \left (a+b x^2+c x^4\right )^{3/2}}{6 c}-\frac {\sqrt [4]{a} \left (5 b c d-2 b^2 f+6 a c f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{15 c^{7/4} \sqrt {a+b x^2+c x^4}}+\frac {\sqrt [4]{a} \left (b+2 \sqrt {a} \sqrt {c}\right ) \left (5 c d-2 b f+3 \sqrt {a} \sqrt {c} f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{30 c^{7/4} \sqrt {a+b x^2+c x^4}}-\frac {\left (\left (b^2-4 a c\right ) (2 c e-b g)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{32 c^2}\\ &=\frac {\left (5 b c d-2 b^2 f+6 a c f\right ) x \sqrt {a+b x^2+c x^4}}{15 c^{3/2} \left (\sqrt {a}+\sqrt {c} x^2\right )}+\frac {(2 c e-b g) \left (b+2 c x^2\right ) \sqrt {a+b x^2+c x^4}}{16 c^2}+\frac {x \left (5 c d+b f+3 c f x^2\right ) \sqrt {a+b x^2+c x^4}}{15 c}+\frac {g \left (a+b x^2+c x^4\right )^{3/2}}{6 c}-\frac {\sqrt [4]{a} \left (5 b c d-2 b^2 f+6 a c f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{15 c^{7/4} \sqrt {a+b x^2+c x^4}}+\frac {\sqrt [4]{a} \left (b+2 \sqrt {a} \sqrt {c}\right ) \left (5 c d-2 b f+3 \sqrt {a} \sqrt {c} f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{30 c^{7/4} \sqrt {a+b x^2+c x^4}}-\frac {\left (\left (b^2-4 a c\right ) (2 c e-b g)\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x^2}{\sqrt {a+b x^2+c x^4}}\right )}{16 c^2}\\ &=\frac {\left (5 b c d-2 b^2 f+6 a c f\right ) x \sqrt {a+b x^2+c x^4}}{15 c^{3/2} \left (\sqrt {a}+\sqrt {c} x^2\right )}+\frac {(2 c e-b g) \left (b+2 c x^2\right ) \sqrt {a+b x^2+c x^4}}{16 c^2}+\frac {x \left (5 c d+b f+3 c f x^2\right ) \sqrt {a+b x^2+c x^4}}{15 c}+\frac {g \left (a+b x^2+c x^4\right )^{3/2}}{6 c}-\frac {\left (b^2-4 a c\right ) (2 c e-b g) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{32 c^{5/2}}-\frac {\sqrt [4]{a} \left (5 b c d-2 b^2 f+6 a c f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{15 c^{7/4} \sqrt {a+b x^2+c x^4}}+\frac {\sqrt [4]{a} \left (b+2 \sqrt {a} \sqrt {c}\right ) \left (5 c d-2 b f+3 \sqrt {a} \sqrt {c} f\right ) \left (\sqrt {a}+\sqrt {c} x^2\right ) \sqrt {\frac {a+b x^2+c x^4}{\left (\sqrt {a}+\sqrt {c} x^2\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{c} x}{\sqrt [4]{a}}\right )|\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{30 c^{7/4} \sqrt {a+b x^2+c x^4}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 12.55, size = 661, normalized size = 1.31 \begin {gather*} \frac {2 \sqrt {c} \left (a+b x^2+c x^4\right ) \left (-15 b^2 g+2 b c (15 e+x (8 f+5 g x))+4 c (10 a g+c x (20 d+x (15 e+2 x (6 f+5 g x))))\right )+\frac {-8 i \sqrt {2} \sqrt {c} \left (-b+\sqrt {b^2-4 a c}\right ) \left (-5 b c d+2 b^2 f-6 a c f\right ) \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^2}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} E\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )+8 i \sqrt {2} \sqrt {c} \left (-2 b^3 f+b c \left (-5 \sqrt {b^2-4 a c} d+8 a f\right )+b^2 \left (5 c d+2 \sqrt {b^2-4 a c} f\right )-2 a c \left (10 c d+3 \sqrt {b^2-4 a c} f\right )\right ) \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^2}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^2}{b+\sqrt {b^2-4 a c}}} F\left (i \sinh ^{-1}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} x\right )|\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-15 \left (b^2-4 a c\right ) \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} (-2 c e+b g) \sqrt {a+b x^2+c x^4} \log \left (b+2 c x^2-2 \sqrt {c} \sqrt {a+b x^2+c x^4}\right )}{\sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}}}}{480 c^{5/2} \sqrt {a+b x^2+c x^4}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x + f*x^2 + g*x^3)*Sqrt[a + b*x^2 + c*x^4],x]

[Out]

(2*Sqrt[c]*(a + b*x^2 + c*x^4)*(-15*b^2*g + 2*b*c*(15*e + x*(8*f + 5*g*x)) + 4*c*(10*a*g + c*x*(20*d + x*(15*e
 + 2*x*(6*f + 5*g*x))))) + ((-8*I)*Sqrt[2]*Sqrt[c]*(-b + Sqrt[b^2 - 4*a*c])*(-5*b*c*d + 2*b^2*f - 6*a*c*f)*Sqr
t[(b - Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b - Sqrt[b^2 - 4*a*c])]*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b + Sqrt[
b^2 - 4*a*c])]*EllipticE[I*ArcSinh[Sqrt[2]*Sqrt[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b - Sq
rt[b^2 - 4*a*c])] + (8*I)*Sqrt[2]*Sqrt[c]*(-2*b^3*f + b*c*(-5*Sqrt[b^2 - 4*a*c]*d + 8*a*f) + b^2*(5*c*d + 2*Sq
rt[b^2 - 4*a*c]*f) - 2*a*c*(10*c*d + 3*Sqrt[b^2 - 4*a*c]*f))*Sqrt[(b - Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b - Sqrt[
b^2 - 4*a*c])]*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(b + Sqrt[b^2 - 4*a*c])]*EllipticF[I*ArcSinh[Sqrt[2]*Sqr
t[c/(b + Sqrt[b^2 - 4*a*c])]*x], (b + Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c])] - 15*(b^2 - 4*a*c)*Sqrt[c/(b
 + Sqrt[b^2 - 4*a*c])]*(-2*c*e + b*g)*Sqrt[a + b*x^2 + c*x^4]*Log[b + 2*c*x^2 - 2*Sqrt[c]*Sqrt[a + b*x^2 + c*x
^4]])/Sqrt[c/(b + Sqrt[b^2 - 4*a*c])])/(480*c^(5/2)*Sqrt[a + b*x^2 + c*x^4])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1041\) vs. \(2(475)=950\).
time = 0.07, size = 1042, normalized size = 2.06

method result size
elliptic \(\frac {g \,x^{4} \sqrt {c \,x^{4}+b \,x^{2}+a}}{6}+\frac {f \,x^{3} \sqrt {c \,x^{4}+b \,x^{2}+a}}{5}+\frac {\left (\frac {b g}{6}+c e \right ) x^{2} \sqrt {c \,x^{4}+b \,x^{2}+a}}{4 c}+\frac {\left (\frac {b f}{5}+c d \right ) x \sqrt {c \,x^{4}+b \,x^{2}+a}}{3 c}+\frac {\left (\frac {a g}{3}+e b -\frac {3 b \left (\frac {b g}{6}+c e \right )}{4 c}\right ) \sqrt {c \,x^{4}+b \,x^{2}+a}}{2 c}+\frac {\left (a d -\frac {a \left (\frac {b f}{5}+c d \right )}{3 c}\right ) \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{4 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}+\frac {\left (a e -\frac {a \left (\frac {b g}{6}+c e \right )}{2 c}-\frac {b \left (\frac {a g}{3}+e b -\frac {3 b \left (\frac {b g}{6}+c e \right )}{4 c}\right )}{2 c}\right ) \ln \left (\frac {2 c \,x^{2}+b}{\sqrt {c}}+2 \sqrt {c \,x^{4}+b \,x^{2}+a}\right )}{2 \sqrt {c}}-\frac {\left (\frac {2 f a}{5}+b d -\frac {2 b \left (\frac {b f}{5}+c d \right )}{3 c}\right ) a \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \left (\EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )-\EllipticE \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )\right )}{2 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}\, \left (b +\sqrt {-4 a c +b^{2}}\right )}\) \(620\)
default \(g \left (\frac {\left (c \,x^{4}+b \,x^{2}+a \right )^{\frac {3}{2}}}{6 c}-\frac {b \,x^{2} \sqrt {c \,x^{4}+b \,x^{2}+a}}{8 c}-\frac {b^{2} \sqrt {c \,x^{4}+b \,x^{2}+a}}{16 c^{2}}-\frac {b \ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right ) a}{8 c^{\frac {3}{2}}}+\frac {b^{3} \ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right )}{32 c^{\frac {5}{2}}}\right )+f \left (\frac {x^{3} \sqrt {c \,x^{4}+b \,x^{2}+a}}{5}+\frac {b x \sqrt {c \,x^{4}+b \,x^{2}+a}}{15 c}-\frac {b a \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{60 c \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}-\frac {\left (\frac {2 a}{5}-\frac {2 b^{2}}{15 c}\right ) a \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \left (\EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )-\EllipticE \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )\right )}{2 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}\, \left (b +\sqrt {-4 a c +b^{2}}\right )}\right )+e \left (\frac {\left (2 c \,x^{2}+b \right ) \sqrt {c \,x^{4}+b \,x^{2}+a}}{8 c}+\frac {\ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right ) a}{4 \sqrt {c}}-\frac {\ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right ) b^{2}}{16 c^{\frac {3}{2}}}\right )+d \left (\frac {x \sqrt {c \,x^{4}+b \,x^{2}+a}}{3}+\frac {a \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{6 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}-\frac {b a \sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) x^{2}}{a}}\, \left (\EllipticF \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )-\EllipticE \left (\frac {x \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )\right )}{6 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {c \,x^{4}+b \,x^{2}+a}\, \left (b +\sqrt {-4 a c +b^{2}}\right )}\right )\) \(1042\)
risch \(\text {Expression too large to display}\) \(1501\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x^3+f*x^2+e*x+d)*(c*x^4+b*x^2+a)^(1/2),x,method=_RETURNVERBOSE)

[Out]

g*(1/6*(c*x^4+b*x^2+a)^(3/2)/c-1/8*b/c*x^2*(c*x^4+b*x^2+a)^(1/2)-1/16*b^2/c^2*(c*x^4+b*x^2+a)^(1/2)-1/8*b/c^(3
/2)*ln((1/2*b+c*x^2)/c^(1/2)+(c*x^4+b*x^2+a)^(1/2))*a+1/32*b^3/c^(5/2)*ln((1/2*b+c*x^2)/c^(1/2)+(c*x^4+b*x^2+a
)^(1/2)))+f*(1/5*x^3*(c*x^4+b*x^2+a)^(1/2)+1/15*b/c*x*(c*x^4+b*x^2+a)^(1/2)-1/60*b/c*a*2^(1/2)/((-b+(-4*a*c+b^
2)^(1/2))/a)^(1/2)*(4-2*(-b+(-4*a*c+b^2)^(1/2))/a*x^2)^(1/2)*(4+2*(b+(-4*a*c+b^2)^(1/2))/a*x^2)^(1/2)/(c*x^4+b
*x^2+a)^(1/2)*EllipticF(1/2*x*2^(1/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c
)^(1/2))-1/2*(2/5*a-2/15/c*b^2)*a*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2)*(4-2*(-b+(-4*a*c+b^2)^(1/2))/a*x^2
)^(1/2)*(4+2*(b+(-4*a*c+b^2)^(1/2))/a*x^2)^(1/2)/(c*x^4+b*x^2+a)^(1/2)/(b+(-4*a*c+b^2)^(1/2))*(EllipticF(1/2*x
*2^(1/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))-EllipticE(1/2*x*2^(1
/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))))+e*(1/8*(2*c*x^2+b)*(c*x
^4+b*x^2+a)^(1/2)/c+1/4/c^(1/2)*ln((1/2*b+c*x^2)/c^(1/2)+(c*x^4+b*x^2+a)^(1/2))*a-1/16/c^(3/2)*ln((1/2*b+c*x^2
)/c^(1/2)+(c*x^4+b*x^2+a)^(1/2))*b^2)+d*(1/3*x*(c*x^4+b*x^2+a)^(1/2)+1/6*a*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))/a)
^(1/2)*(4-2*(-b+(-4*a*c+b^2)^(1/2))/a*x^2)^(1/2)*(4+2*(b+(-4*a*c+b^2)^(1/2))/a*x^2)^(1/2)/(c*x^4+b*x^2+a)^(1/2
)*EllipticF(1/2*x*2^(1/2)*((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))-1/6
*b*a*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))/a)^(1/2)*(4-2*(-b+(-4*a*c+b^2)^(1/2))/a*x^2)^(1/2)*(4+2*(b+(-4*a*c+b^2)^
(1/2))/a*x^2)^(1/2)/(c*x^4+b*x^2+a)^(1/2)/(b+(-4*a*c+b^2)^(1/2))*(EllipticF(1/2*x*2^(1/2)*((-b+(-4*a*c+b^2)^(1
/2))/a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))-EllipticE(1/2*x*2^(1/2)*((-b+(-4*a*c+b^2)^(1/2))/
a)^(1/2),1/2*(-4+2*b*(b+(-4*a*c+b^2)^(1/2))/a/c)^(1/2))))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^3+f*x^2+e*x+d)*(c*x^4+b*x^2+a)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(c*x^4 + b*x^2 + a)*(g*x^3 + f*x^2 + x*e + d), x)

________________________________________________________________________________________

Fricas [A]
time = 0.26, size = 574, normalized size = 1.14 \begin {gather*} \frac {32 \, \sqrt {\frac {1}{2}} {\left ({\left (5 \, b c^{2} d - 2 \, {\left (b^{2} c - 3 \, a c^{2}\right )} f\right )} x \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - {\left (5 \, b^{2} c d - 2 \, {\left (b^{3} - 3 \, a b c\right )} f\right )} x\right )} \sqrt {c} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - b}{c}} E(\arcsin \left (\frac {\sqrt {\frac {1}{2}} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - b}{c}}}{x}\right )\,|\,\frac {b c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + b^{2} - 2 \, a c}{2 \, a c}) - 32 \, \sqrt {\frac {1}{2}} {\left ({\left (5 \, {\left (b c^{2} - 2 \, c^{3}\right )} d - {\left (2 \, b^{2} c - {\left (6 \, a + b\right )} c^{2}\right )} f\right )} x \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - {\left (5 \, {\left (b^{2} c + 2 \, b c^{2}\right )} d - {\left (2 \, b^{3} - {\left (6 \, a b - b^{2}\right )} c\right )} f\right )} x\right )} \sqrt {c} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - b}{c}} F(\arcsin \left (\frac {\sqrt {\frac {1}{2}} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - b}{c}}}{x}\right )\,|\,\frac {b c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + b^{2} - 2 \, a c}{2 \, a c}) + 15 \, {\left (2 \, {\left (b^{2} c - 4 \, a c^{2}\right )} e - {\left (b^{3} - 4 \, a b c\right )} g\right )} \sqrt {c} x \log \left (8 \, c^{2} x^{4} + 8 \, b c x^{2} + b^{2} - 4 \, \sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c x^{2} + b\right )} \sqrt {c} + 4 \, a c\right ) + 4 \, {\left (40 \, c^{3} g x^{5} + 48 \, c^{3} f x^{4} + 80 \, b c^{2} d + 10 \, {\left (6 \, c^{3} e + b c^{2} g\right )} x^{3} + 16 \, {\left (5 \, c^{3} d + b c^{2} f\right )} x^{2} - 32 \, {\left (b^{2} c - 3 \, a c^{2}\right )} f + 5 \, {\left (6 \, b c^{2} e - {\left (3 \, b^{2} c - 8 \, a c^{2}\right )} g\right )} x\right )} \sqrt {c x^{4} + b x^{2} + a}}{960 \, c^{3} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^3+f*x^2+e*x+d)*(c*x^4+b*x^2+a)^(1/2),x, algorithm="fricas")

[Out]

1/960*(32*sqrt(1/2)*((5*b*c^2*d - 2*(b^2*c - 3*a*c^2)*f)*x*sqrt((b^2 - 4*a*c)/c^2) - (5*b^2*c*d - 2*(b^3 - 3*a
*b*c)*f)*x)*sqrt(c)*sqrt((c*sqrt((b^2 - 4*a*c)/c^2) - b)/c)*elliptic_e(arcsin(sqrt(1/2)*sqrt((c*sqrt((b^2 - 4*
a*c)/c^2) - b)/c)/x), 1/2*(b*c*sqrt((b^2 - 4*a*c)/c^2) + b^2 - 2*a*c)/(a*c)) - 32*sqrt(1/2)*((5*(b*c^2 - 2*c^3
)*d - (2*b^2*c - (6*a + b)*c^2)*f)*x*sqrt((b^2 - 4*a*c)/c^2) - (5*(b^2*c + 2*b*c^2)*d - (2*b^3 - (6*a*b - b^2)
*c)*f)*x)*sqrt(c)*sqrt((c*sqrt((b^2 - 4*a*c)/c^2) - b)/c)*elliptic_f(arcsin(sqrt(1/2)*sqrt((c*sqrt((b^2 - 4*a*
c)/c^2) - b)/c)/x), 1/2*(b*c*sqrt((b^2 - 4*a*c)/c^2) + b^2 - 2*a*c)/(a*c)) + 15*(2*(b^2*c - 4*a*c^2)*e - (b^3
- 4*a*b*c)*g)*sqrt(c)*x*log(8*c^2*x^4 + 8*b*c*x^2 + b^2 - 4*sqrt(c*x^4 + b*x^2 + a)*(2*c*x^2 + b)*sqrt(c) + 4*
a*c) + 4*(40*c^3*g*x^5 + 48*c^3*f*x^4 + 80*b*c^2*d + 10*(6*c^3*e + b*c^2*g)*x^3 + 16*(5*c^3*d + b*c^2*f)*x^2 -
 32*(b^2*c - 3*a*c^2)*f + 5*(6*b*c^2*e - (3*b^2*c - 8*a*c^2)*g)*x)*sqrt(c*x^4 + b*x^2 + a))/(c^3*x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + b x^{2} + c x^{4}} \left (d + e x + f x^{2} + g x^{3}\right )\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x**3+f*x**2+e*x+d)*(c*x**4+b*x**2+a)**(1/2),x)

[Out]

Integral(sqrt(a + b*x**2 + c*x**4)*(d + e*x + f*x**2 + g*x**3), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^3+f*x^2+e*x+d)*(c*x^4+b*x^2+a)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(c*x^4 + b*x^2 + a)*(g*x^3 + f*x^2 + x*e + d), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \sqrt {c\,x^4+b\,x^2+a}\,\left (g\,x^3+f\,x^2+e\,x+d\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^2 + c*x^4)^(1/2)*(d + e*x + f*x^2 + g*x^3),x)

[Out]

int((a + b*x^2 + c*x^4)^(1/2)*(d + e*x + f*x^2 + g*x^3), x)

________________________________________________________________________________________